package com.UI 
{
	import flash.display.MovieClip;
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.events.Event;
	/**
	 * ...
	 * @author Imola
	 */
	public class Background extends MovieClip
	{
		private var rect:Sprite;
		private var stage_width:int;
		private var stage_height:int;
		
		public function Background(width_param:int, height_param:int) 
		{
			stage_height = height_param;
			stage_width = width_param;
			init();
		}
		
		private function init():void {
			//stage.align = StageAlign.TOP_LEFT;
			rect = new Sprite();
			rect.graphics.beginFill(0xecca61);
			rect.graphics.drawRect(0, 0, stage_width, stage_height);
			addChild(rect);
			addEventListener(Event.ENTER_FRAME, doInfinite);
		}
		
		private function doInfinite(ev:Event):void {
			removeEventListener(Event.ENTER_FRAME, doInfinite);
		}
	}

}